﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Program03
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = 12;
            {
                int y = 9;
                Console.WriteLine(x);
                Console.WriteLine(y);
            }
            Console.WriteLine(x);
            //y的作用域在｛｝内
            //Console.WriteLine(y);
        }
    }
}
